package com.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


@Entity
public class LotteryRecord {

	private Integer id;
	private String useNums;
	private String wechaId;
	private String token;
	private boolean isLottery;
	private String wechaNmae;
	private String phone;
	private String sn;
	private String time;
	private String prize;
	private boolean sendstatus;
	private String sendTime;
	private Lottery lotery;
	

	@ManyToOne
	@JoinColumn(name="lotteryid")
	public Lottery getLotery() {
		return lotery;
	}
	public void setLotery(Lottery lotery) {
		this.lotery = lotery;
	}
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUseNums() {
		return useNums;
	}
	public void setUseNums(String useNums) {
		this.useNums = useNums;
	}
	public String getWechaId() {
		return wechaId;
	}
	public void setWechaId(String wechaId) {
		this.wechaId = wechaId;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public boolean isLottery() {
		return isLottery;
	}
	public void setLottery(boolean isLottery) {
		this.isLottery = isLottery;
	}
	public String getWechaNmae() {
		return wechaNmae;
	}
	public void setWechaNmae(String wechaNmae) {
		this.wechaNmae = wechaNmae;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getPrize() {
		return prize;
	}
	public void setPrize(String prize) {
		this.prize = prize;
	}
	public boolean isSendstatus() {
		return sendstatus;
	}
	public void setSendstatus(boolean sendstatus) {
		this.sendstatus = sendstatus;
	}
	public String getSendTime() {
		return sendTime;
	}
	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}
	

}
